package ve.lm.hrms_cy.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;


@TableName("employee")
public class Employee {

    private Long id;
    private String name;
    private String gender;
    private String position;
    private String department;
    @TableField("comeOfficeTime")
    private LocalDateTime comeOfficeTime;
    @TableField("leaveOfficeTime")
    private LocalDateTime leaveOfficeTime;
    private String status;
    @TableField("phoneNumber")
    private String phoneNumber;

    public Employee(){}

    @JsonCreator
    public Employee(@JsonProperty("name") String name ,@JsonProperty("gender") String gender ,@JsonProperty("position") String position ,@JsonProperty("department") String department ,@JsonProperty("comeOfficeTime") LocalDateTime comeOfficeTime ,@JsonProperty("leaveOfficeTime") LocalDateTime leaveOfficeTime ,@JsonProperty("status") String status ,@JsonProperty("phoneNumber") String phoneNumber){

        this.name=name;
        this.gender=gender;
        this.position=position;
        this.department=department;
        this.comeOfficeTime=comeOfficeTime;
        this.leaveOfficeTime=leaveOfficeTime;
        this.status=status;
        this.phoneNumber=phoneNumber;

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public LocalDateTime getComeOfficeTime() {
        return comeOfficeTime;
    }

    public void setComeOfficeTime(LocalDateTime comeOfficeTime) {
        this.comeOfficeTime = comeOfficeTime;
    }

    public LocalDateTime getLeaveOfficeTime() {
        return leaveOfficeTime;
    }

    public void setLeaveOfficeTime(LocalDateTime leaveOfficeTime) {
        this.leaveOfficeTime = leaveOfficeTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}
